package com.sale.succ.system;

import com.sale.succ.components.MessDialog;
import com.sale.succ.utils.Logger;
import com.sale.succ.utils.TraderConstants;
import com.sale.succ.utils.TraderHelper;


public class TradeMarketException extends Exception {
	public TradeMarketException(){
		super();
		Logger.error(TraderHelper.getLabel(TraderConstants.ABORTED));
		MessDialog messageBox = new MessDialog(				
				TraderHelper.getLabel(TraderConstants.ABORTED)
				);
		messageBox.backGround = TraderConstants.BUTTON_BGR;
		messageBox.execute();
	}
	
	public TradeMarketException(String labelMessage){
		super(labelMessage);
		Logger.error(labelMessage);
		MessDialog messageBox = new MessDialog(labelMessage);
		messageBox.backGround = TraderConstants.BUTTON_BGR;
		messageBox.execute();
	}
	
	public TradeMarketException(String ex, String labelMessage){
		super(labelMessage);
		Logger.error(ex);
		MessDialog messageBox = new MessDialog(labelMessage);
		messageBox.backGround = TraderConstants.BUTTON_BGR;
		messageBox.execute();
	}
}
